package cn.gson.springboot.model.mapper.cusmapper;

import cn.gson.springboot.model.pjos.Cuclue;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Repository
@Transactional
public interface CuclueMapper {
//    分页查询线索
    public List<Cuclue> pageSelectCuclue(@Param("empId")Integer empId,@Param("deptId")Integer deptId,@Param("cusState")Integer cusState,@Param("cucStatus") String cucStatus,@Param("cusName") String cusName);

//    根据线索id设为无效
    public void updateCulue(@Param("cucStatus") String cucStatus,@Param("cucId") Integer cucId);

//    查询线索联系电话是否重复
    public Cuclue selectCucCupPhone(String cucLinkPhone);

}
